import { MockMethod } from 'vite-plugin-mock'

const budgetMock: MockMethod[] = [
  {
    url: '/home-service/budget/category',
    method: 'get',
    response: () => {
      return ['结婚预算']
    }
  },
  {
    url: '/home-service/budget',
    method: 'get',
    response: () => {
      return [{
        actual: 26000,
        budget: 23123,
        category: '结婚预算',
        content: '10.2午宴',
        id: 611115630714949,
        payTime: null,
        project: '婚宴',
        remake: '5桌',
        vendor: '世纪缘酒店'
      },
      {
        actual: 680,
        budget: 700,
        category: '结婚预算',
        content: '看结婚日子',
        id: 611116171505733,
        payTime: null,
        project: '吉日',
        remake: '',
        vendor: '算命先生'
      },
      {
        actual: 0,
        budget: 0,
        category: '结婚预算',
        content: '化妆师',
        id: 611404639944773,
        payTime: null,
        project: '婚庆',
        remake: '',
        vendor: ''
      },
      {
        actual: 0,
        budget: 0,
        category: '结婚预算',
        content: '主持人',
        id: 611404716798021,
        payTime: null,
        project: '婚庆',
        remake: '',
        vendor: ''
      },
      {
        actual: 10000,
        budget: 10000,
        category: '结婚预算',
        content: '婚车',
        id: 611404772474949,
        payTime: null,
        project: '婚庆',
        remake: '',
        vendor: ''
      }]
    }
  },
  {
    url: '/home-service/budget/stats/rank',
    method: 'get',
    response: () => {
      return [{
        name: '10.2午宴',
        value: 26000
      },
      {
        name: '婚车',
        value: 10000
      },
      {
        name: '看结婚日子',
        value: 680
      },
      {
        name: '化妆师',
        value: 0
      },
      {
        name: '主持人',
        value: 0
      }]
    }
  },
  {
    url: '/home-service/budget/stats/project',
    method: 'get',
    response: () => {
      return [{
        name: '婚宴',
        value: 26000
      },
      {
        name: '吉日',
        value: 680
      },
      {
        name: '婚庆',
        value: 10000
      }]
    }
  }]

export default budgetMock
